import type { BaseResponseData } from '../trademark/type'
//定义分类模型类型
export interface CategoryData {
  id: number | string
  name: string
  category1Id?: number
  category2Id?: number
}
//定义分类接口返回值类型
export interface CategoryResponse extends BaseResponseData {
  data: CategoryData[]
}

//定义属性标签类型
export interface AttrLabel {
  attrId?: number
  id?: number
  valueName: string
  isEdit?: boolean
}

//定义属性类型
export interface Attr {
  attrName: string
  attrValueList: AttrLabel[]
  categoryId: number | string
  categoryLevel: number
  id?: number
}

//定义属性列表返回值类型
export interface CategoryAttrResponse extends BaseResponseData {
  data: Attr[]
}
